# stop
ps aux | grep redis-server | grep -v grep > /dev/null
if [ $? -eq 0 ];then
    echo "redis已经启动"
else
    redis-server ./conf/redis.conf
    if [ $? -eq 0 ];then
        echo "redis启动成功！"
    else
        echo "redis启动失败！"
    fi
fi
# kill -9 $(ps aux|grep "redis-server" | grep -v grep | awk '{print $2}')
